﻿@{
    ViewBag.Title = "Topicinformation";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div id="PresentationBox" ng-app="publicModule" ng-controller="TopicController" ng-init="init('@ViewBag.topicId', 'titlesFromTopic')">

        <h1 id="PresentationTitle" ng-if="topicFound">{{topic.Topic.TopicName}}</h1>

        @if (DoeLibsMVC.Security.SecurityHelper.currentUserIsInStaffGroup())
        {
            if (DoeLibsMVC.Security.SecurityHelper.currentUserIsInStaffGroup())
            {
                <button type="button" class="generalBtn" data-toggle="modal" data-target="#editTopicModal">
                    edit
                </button>
            }
        }

        <table class="DataPresentationtable" id="titlesFromTopic"></table>
</div>

<!-- add modals -->
@if (DoeLibsMVC.Security.SecurityHelper.currentUserIsInStaffGroup())
{
    @Html.Action("Edit", "Topic", new { id = ViewBag.topicId })
}